<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>欢迎光临 Music Store</title>
<link type="text/css" rel="Stylesheet" href="static/style/front.css" />
</head>

<body>
	<div id="wrapper">
		<div id="header">
			<div id="header-logo">
				<a href="index"><img src="static/style/images/logo.png" alt=""></img></a>
			</div>
			<div id="header-login">
				<a href="login">登录</a> | <a href="#">注册</a>
			</div>
			<div class="clearBoth"></div>
			<div id="header-search">
				<form action="index" method="get">
					<input id="keyword" name="title" type="text" /><input
						id="btnSearch" type="submit" value="搜索" />
				</form>
			</div>
			<div id="header-nav">
				<ul>
					<li><a href="#">首页</a></li>
					<li><a href="#">商店</a></li>
					<li><a href="#">购物车</a></li>
					<li><a href="#">个人信息</a></li>
				</ul>
				<label id="welcome">您好，Sam。</label>
			</div>
		</div>
		<div id="content">
			<div id="main">
				<h3 id="main-title">购物车</h3>
				<div id="hotAlbums">
					<table>
						<tr>
							<td>唱片</td>
							<td>单价</td>
							<td>数量</td>
							<td>小计</td>
							<td>删除</td>
						</tr>

					<c:forEach var="c" items="${sessionScope.cart.items}">
						<tr>
							<td>${c.albumTitle}</td>
							<td>${c.unitPrice}</td>
							<td>${c.qty}</td>
							<td>${c.subTotal}</td>
							<td><a href="cart-delete?id=${c.albumId}">删除</a></td>
						</tr>				
						</c:forEach>

					</table>
				</div>
				<div></div>
			</div>
			<div class="clearBoth"></div>
		</div>
		<div id="footer">
			<div id="footer-ad">
				<img src="static/style/images/footer.png" alt=""></img>
			</div>
			<div id="footer-contactUs">
				<p>Music Store</p>
				<p>Design by Sam Chen, July,2011.</p>
			</div>
		</div>
	</div>
</body>
</html>
